export default [
    {
        path: '/login',
        name: 'login',
        meta: {
            title: '登录'
        },
        component: () => import('../views/Login.vue')
    },
    {
        path: '/',
        name: 'home',
        meta: {
            title: '夜猫站'
        },
        redirect: {
            name: '/'
        },
        component: () => import('../views/Home.vue'),
        children: [
            {
                path: '/',
                name: '/',
                meta: {
                    title: '首页'
                },
                component: () => import('../views/Index.vue')
            },
            {
                path: '/list',
                name: 'list',
                component: () => import('../views/List.vue')
            },
            {
                path: '/about',
                name: 'about',
                component: () => import('../views/About.vue')
            }
        ]
    }

]